<%= error_messages_for 'user' %>

<!--[form:user]-->
<p><label for="user_user_type_id">User Type</label><br/>
<%= select("user", "user_type_id", UserType.find(:all, :order => "id").collect{|user_type| [user_type.name, user_type.id]}) %></p>

<p><label for="user_username">Username</label><br/>
<%= text_field 'user', 'username'  %></p>

<p><label for="user_name">Name</label><br/>
<%= text_field 'user', 'name'  %></p>

<p><label for="user_email">Email</label><br/>
<%= text_field 'user', 'email'  %></p>

<p><label for="user_password">Password</label><% if !@user.id.blank? -%> <span style="color:gray;font-size:8pt;">(optional, unless changing)</span><% end -%><br/>
<%= password_field 'user', 'password'  %></p>
<!--[eoform:user]-->

